{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-title">
        <h5>营收总额</h5>
    </div>
    <div class="col-sm-12">
        <div class="layui-form layui-form-item">

            <div class="layui-input-inline" style="margin-top: 5px">
                <input type="text"  name="add_start" onfocus="wk.lay_date(this);" class="layui-input layer-date search" placeholder="提交开始日期"/>
            </div>

            <div class="layui-input-inline" style="margin-top: 5px">
                <input type="text"  name="add_end" onfocus="wk.lay_date(this);"  class="layui-input layer-date search" placeholder="提交结束日期"/>
            </div>
            <div class="layui-input-inline" style="margin-top: 5px">
                <button class="layui-btn" lay-submit="" lay-filter="lunbo_type">立即搜索</button>
                <button  class="layui-btn layui-btn-normal" id="empty"  lay-submit="" lay-filter="LAY-search">重置</button>
            </div>
        </div>
    </div>
    <div class="ibox-content layui-form">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">营收人民币：</label>
                <div class="layui-input-block">
                    <input type="text" value="{$res2}" lay-verify="" class="layui-input rmb">
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">营收金币：</label>
                <div class="layui-input-block">
                    <input type="text" value="{$res1}" lay-verify="" class="layui-input jb">
                </div>
            </div>

            <!--<div class="layui-form-item layui-col-md-offset1 layui-col-md8">-->
            <!--<div class="layui-input-block">-->
            <!--<button class="layui-btn" lay-submit="" lay-filter="component-form-element">保存-->
            <!--</button>-->
            <!--&lt;!&ndash;<button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>&ndash;&gt;-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>
    layui.use(['form'],function () {
        var form = layui.form
        form.on('submit(lunbo_type)', function (data) {
//            alert(data.field.add_start);
//            alert(data.field.add_end);
            $.ajax({
                url: "{:url('broken')}",
                type: "post",
                dataType: "json",
                data:{add_start:data.field.add_start,add_end:data.field.add_end},
                success: function (res) {
                    if(res.code==200){
                        $(".rmb").val(res.msg1);
                        $(".jb").val(res.msg);
                    }
                }
            });
        })
    })
</script>
</body>
</html>